package com.example.springboot.controller.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.example.springboot.entity.Likes;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
//点赞
@Data
public class LikesDTO extends Likes {
    private String avatar;
    private String nickname;
    @ApiModelProperty("文章标题")
    private String title;

    @ApiModelProperty("文章摘要")
    private String summary;

    @ApiModelProperty("文章内容")
    private String content;

    @ApiModelProperty("封面图URL")
    private String img;

    @ApiModelProperty("作者ID")
    private Integer authorId;

    @ApiModelProperty("分类ID")
    private Integer categoryId;

    @ApiModelProperty("状态：0草稿，1已发布，2待审核，-1已删除")
    private Integer status;

    @ApiModelProperty("浏览量")
    private Integer views;

    @ApiModelProperty("点赞数")
    private Integer likes;

    @ApiModelProperty("评论数")
    private Integer comments;

    @ApiModelProperty("收藏数")
    private Integer collections;

    @JsonFormat(pattern ="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime time;
}
